import request from "@/utils/request";
import defaultSettings from "@/settings";

//大小额贷记业务审核
export const apiUrlConfig = {
  queryUrl: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/hvpsBepsBase/baseApprove/HvpsAndBepsCreditOperationsApprove/search`,
  exportUrl: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/hvpsBepsBase/baseApprove/HvpsAndBepsCreditOperationsApprove/search`,
  delUrl: `${defaultSettings.ctx.cnapsApp} `,
};
export const details104ApiUrlConfig = {
  queryUrl: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/hvpsBepsBase/baseHandWorkApprove/HvpsAndBepsOutgoingHandWorkApprove/searchA104`,
}

export const details307ApiUrlConfig = {
  queryUrl: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/hvpsBepsBase/baseHandWorkApprove/HvpsAndBepsOutgoingHandWorkApprove/searchA307`,
}
//往账大小额审核查询明细
export function detail(params) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/hvpsBepsBase/baseApprove/HvpsAndBepsCreditOperationsApprove/detail`,
    method: "get",
    params,
  });
}
export function approve(data,code) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/hvpsBepsBase/baseApprove/HvpsAndBepsCreditOperationsApprove/approve${code}`,
    method: "post",
    data,
  });
}
export function reject(data,code) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/hvpsBepsBase/baseApprove/HvpsAndBepsCreditOperationsApprove/reject${code}`,
    method: "post",
    data,
  });
}

// 小额借记业务审核
export const apiUrlConfig2 = {
  queryUrl: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/hvpsBepsBase/baseApprove/BepsDebitOperationsApprove/search`,
  exportUrl: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/hvpsBepsBase/baseApprove/BepsDebitOperationsApprove/search`,
  delUrl: `${defaultSettings.ctx.cnapsApp} `,
};

// 小额借记业务审核明细
export function detail2(params) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/hvpsBepsBase/baseApprove/BepsDebitOperationsApprove/detail`,
    method: "get",
    params,
  });
}

export function approve2(data,code) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/hvpsBepsBase/baseApprove/BepsDebitOperationsApprove/approve${code}`,
    method: "post",
    data,
  });
}
export function reject2(data,code) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/hvpsBepsBase/baseApprove/BepsDebitOperationsApprove/reject${code}`,
    method: "post",
    data,
  });
}


//小额借记明细table
export const reqConfigB307 = {
  queryUrl: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/hvpsBepsBase/baseApprove/BepsDebitOperationsApprove/searchB307`,
}

export const reqConfigB104 = {
  queryUrl: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/hvpsBepsBase/baseApprove/BepsDebitOperationsApprove/searchB104`,
}

export const reqConfigB309 = {
  queryUrl: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/hvpsBepsBase/baseApprove/BepsDebitOperationsApprove/searchB309`,
}
